import { CSSFilter } from './css'

/**
 * XSS过滤
 *
 * @param {String} css 要过滤的CSS代码
 * @param {Object} options 选项：whiteList, onAttr, onIgnoreAttr
 * @return {String}
 */
export function filterCSS(html, options) {
  const xss = new CSSFilter(options)
  return xss.process(html)
}

export { CSSFilter } from './css'
export * from './default'
